home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 0091 / install.bat < prev    next >
DOS Batch File  |  1997-03-24  |  5KB  |  123 lines

  1. Echo off
  2. REM *********************************************************************/
  3. REM                                                                     */
  4. REM   SYSTEM       : HQ-FAX                                             */
  5. REM   COPYRIGHT    : (c) 1996 HTF CONSULTING                            */
  6. REM                                                                     */
  7. REM *********************************************************************/
  8. REM                                                                     */
  9. REM   BAT file name: Install.bat                                        */
  10. REM   DESCRIPTION  : This batch file drives the Installation prodecure  */
  11. REM                  for the HQ-FAX product                             */
  12. REM                  Install Batch file for One-Step High Quality FAX   */
  13. REM                                                                     */
  14. REM *********************************************************************/
  15. REM
  16. CLS
  17. Echo *************************************************************************
  18. Echo * Welcome to the HQ-FAX Installation Procedure                          *
  19. Echo * Copyright (C) 1996 HTF Consulting                                     *
  20. Echo *************************************************************************
  21. Echo *
  22. Echo To install HQ-FAX into the directory C:\HQFAX, just enter "Install"
  23. Echo To install HQ-FAX into any other directory,  enter "Install X:\dirname"
  24. Echo Where 'X' is the drive name ( C, D, E, etc.) & "dirname" is the directory.
  25. Echo Example(1): "INSTALL "
  26. Echo Example(2): "INSTALL C:\MYFAXDIR"
  27. Echo Example(3): "INSTALL D:\HQFAX"
  28. Echo *
  29. if "%1" == "" goto verify
  30.  
  31. Echo WARNING!!! If you have entered a directory name without a drive letter
  32. Echo or a drive letter without a directory name the installation will fail.
  33. Echo Compare your input to the examples above.
  34. Echo YOUR INPUT WAS:  "%0 %1"
  35. Echo *
  36.  
  37. :verify
  38. if     "%1" == "" Echo Press {spacebar} to install HQ-FAX into the drive:directory  C:\HQFAX
  39. if not "%1" == "" Echo Press {spacebar} to install HQ-FAX into the drive:directory  %1
  40. Echo *
  41. Echo Enter [CNTL_C] to abort, OR...
  42. Pause
  43.  
  44. if exist c:\hqfax.bat goto previnstl
  45. REM if     "%1" == "" if exist C:\HQFAX\*.* goto previnstl
  46. REM if not "%1" == "" if exist %1\*.* goto previnstl
  47. goto install
  48.  
  49. :previnstl
  50. CLS
  51. Echo ATTENTION! ATTENTION! ATENTION!
  52. Echo A previous installation of HQ-FAX is detected.  You must completely remove
  53. Echo HQ-FAX before re-installing. Contact HTF Consulting (510) 521-1689
  54. goto Abort
  55.  
  56. :install
  57. CLS
  58. Echo When the installation is complete the screen will clear and informative
  59. Echo messages will appear!
  60. Echo *
  61. Echo Copying files .....
  62.  
  63. if not "%1" == "" goto Userdir
  64.  
  65. mkdir c:\HQFAX
  66. copy *.* c:\HQFAX
  67. Setpath.exe HQFAX HQFAX
  68. Setpath.exe FAXIT HQFAX
  69. REM erase c:\hqfax\setpath.exe
  70. REM erase c:\hqfax\install.bat
  71. REM erase c:\hqfax\hqfinfo.bat
  72. goto Quit
  73.  
  74. :Userdir
  75. mkdir %1
  76. copy *.* %1
  77. Setpath.exe HQFAX %1
  78. Setpath.exe FAXIT %1
  79. erase %1\setpath.exe
  80. REM erase %1\install.bat
  81. REM erase %1\hqfinfo.bat
  82.  
  83. :Quit
  84. CLS
  85. Call HQFinfo.bat
  86. Echo Print this screen if you like, and then ...
  87. pause
  88. CLS
  89. Echo **** ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION! ****
  90. Echo *
  91. if     "%1" == "" Echo HQ-FAX is installed into the directory  C:\HQFAX.
  92. if not "%1" == "" Echo HQ-FAX is installed into the directory  %1.
  93. Echo *
  94. Echo New users are encouraged to study and excercise the tutorial in the
  95. Echo First Time Use section of the Readme file "Readme.HQF".
  96. Echo When you contact us for technical support, we will be happy to assist you,
  97. Echo but we will want to know right away how far you got with the tutorial.
  98. Echo *
  99. Echo Registered users will need to enter their Registration Key into the
  100. Echo Registration key field in the HQ-FAX Conversion screen.
  101. Echo *
  102. Echo More information follows.
  103. Pause
  104. Echo You may execute HQ-FAX from anywhere if the root directory (C:\;) is in your
  105. Echo current PATH. Otherwise you may execute HQFAX from the root directory.
  106. Echo Your current PATH is:
  107. PATH
  108. PATH C:\;%path%
  109. Echo *
  110. Echo Your current PATH has been modified to include the root directory (C:\;).
  111. Echo Your autoexec.bat file has *NOT* been modified.
  112. Echo You may wish to update the PATH statement in your autoexec.bat file.
  113. Echo *
  114. Echo To start HQ-FAX, just enter "HQFAX" at the DOS prompt.
  115. Echo Monochrome screen users may need to enter "HQFAX /mono" .
  116. Echo Happy FAXing!
  117.  
  118. :Abort
  119. :quit
  120. C:
  121. chdir c:\
  122. Echo on
  123.